<?php
namespace api\home\controller;

use cmf\controller\RestBaseController;
use app\common\logic\Tools;
use app\common\logic\home\ImageApi;
use app\common\logic\home\Lesson;
use app\common\logic\Msg;
use app\common\logic\admin\Imgs;
//图像
class ImageApiController extends RestBaseController
{
	
	public function ceshi1111(ImageApi $ImageApi){
		$ImageApi->index();
	}
	public function indexs(ImageApi $ImageApi){
		$ImageApi->indexs();
	}
	public function index_0(ImageApi $ImageApi){
		$ImageApi->index_0();
	}
	public function index_1(ImageApi $ImageApi){
		$ImageApi->index_1();
	}
	public function index_2(ImageApi $ImageApi){
		$ImageApi->index_2();
	}
	public function index_3(ImageApi $ImageApi){
		$ImageApi->index_3();
	}
	public function getlist(ImageApi $ImageApi){
		$ImageApi->getList();
	}
	public function upload(ImageApi $ImageApi){
		$ImageApi->upload();
	}
	public function getlists(ImageApi $ImageApi){
		$ImageApi->getLists();
	}
	public function uploads(ImageApi $ImageApi){
		$ImageApi->uploads();
	}
	public function del(ImageApi $ImageApi){
		$ImageApi->del();
	}
	public function dels(ImageApi $ImageApi){
		$ImageApi->dels();
	}
	//不需要采集影像 但未发提示短信的  http://qtj.cnduomi.com/api/rem_1
	public function rem_1(Lesson $Lesson){
		$Lesson->rem_1();
	}
	public function rem_2(Lesson $Lesson){
		$id = $this->request->param('id');
		$Lesson->rem_2($id);
	}
	//需要采集影像 但未采集印象  http://qtj.cnduomi.com/api/rem_4
	public function rem_4(Lesson $Lesson){
		$Lesson->rem_4();
	}

	public function msg(Msg $Msg){
		$Msg->index3('18300676720');
	}
	public function discern(ImageApi $ImageApi){

		$ImageApi->discern('http://192.168.88.51:7000/image/null/0335bead4a264ca2b7425c4c3fae0eff.png','2019-03-21 00:00:00','2019-04-1 19:00:00');
	}
	public function toUpload(ImageApi $ImageApi){
		$ImageApi->toUpload();
	}
	public function deleteImg(Imgs $Imgs){
		$Imgs->deleteImgs();
	}
	public function receive(ImageApi $ImageApi){
		$param = $this->request->param();
		$ImageApi->receive($param['msg']);
		//$ImageApi->receive('');
	}

	public function re(){
		$urlss = 'http://'.$_SERVER['SERVER_NAME'].'/rabbit.php?key=8a9d3c1d-4487-4fb4-8c42-e0590fc_1521';
        $rs = Tools::getHttp($urlss);
        dump($rs);
	}

}
